﻿@model IEnumerable<PNProject.Core.XUserModel>
@{
    Layout = null;
}
<h2>Danh sách tài khoản</h2>
@foreach (var item in Model)
{
    if (item.Role != "SuperAdmin")
    {
        string com = item.Username + " - " + item.Name;
    <div class="item-div">
        <img src="/Images/Base/chimuc.jpg" style="margin-right:10px; margin-bottom:1px;"/>
        @if (item.IsBlocked)
        {
        <a class="item-delete" href="/AdminAccount/ActiveAccount/@item.Username">Mở khóa</a>
        }
        else
        {
        <a class="item-delete" href="/AdminAccount/BlockAccount/@item.Username">Khóa</a>
        }
        <span class="item-link">@com</span><br />
    </div>
    }
}